<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <link href="/static/asserts/images/favicon.ico" rel="shortcut icon" th:href="@{/static/asserts/images/favicon.ico}"/>
    <title>注册页面</title>
    <!-- Bootstrap core CSS -->
    <link href="/asserts/css/bootstrap.min.css" th:href="@{../asserts/css/bootstrap.min.css}" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="/asserts/css/signin.css" th:href="@{../asserts/css/signin.css}" rel="stylesheet">
</head>

<body class="text-center" style=" background:url('asserts/images/registbg.png') no-repeat;background-size: 100%">
<form class="form-signin" th:action="@{regist}" method="post" style="border: 2px solid #5b5280;background: #d3fcff">
    <img  src="asserts/images/dog.png" alt="" width="72" height="72">
    <h1 class="h3 mb-3 font-weight-normal" th:text="注册"></h1>
    <p th:text="${msg}" style="color: red" th:if="${not #strings.isEmpty(msg)}"></p>
    <label class="sr-only">nickname</label>
    <input type="text" class="form-control" name="nickName" th:placeholder="名字" required autofocus="">
    <label class="sr-only">username</label>
    <input type="text" class="form-control" name="userName" th:placeholder="帐号" required autofocus="">
    <label class="sr-only">age</label>
    <input type="text" class="form-control" name="code" th:placeholder="身份证" required autofocus="">
    <input type="text" class="form-control" name="mobile" th:placeholder="手机" required autofocus="">
    <input type="text" class="form-control" name="address" th:placeholder="地址" required >

    <div class="form-group" style="border: 1px solid gray">
        <label>性别：</label><br/>
        <div class="form-check form-check-inline">
            <input class="form-check-input" type="radio" name="sex" th:value="1" checked>
            <label class="form-check-label">男</label>
        </div>
        <div class="form-check form-check-inline">
            <input class="form-check-input"   type="radio" name="sex" th:value="2"  >
            <label class="form-check-label">女</label>
        </div>
    </div>
    <label class="sr-only">Password</label>
    <input type="password" class="form-control" name="password" th:placeholder="密码" required>
    <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
    <a class="btn btn-lg btn-primary btn-block"   href="login.html" > 去登录页面</a>
</form>


</body>

</html>
